import {routerRedux} from 'dva/router'
import { post } from '@/utils/request';
import * as api from '@/constants/api';
import {toast, notify} from '@/utils/utils'

export default {
  namespace: 'register',

  state: {

  },

  effects: {
    *submit({ payload }, { call, put }) {
      const response = yield call((()=> post(api.REGISTER)), payload);
      yield put(routerRedux.replace('/user/register-result'))
    },
  },

  reducers: {

  },
};
